import React, {Component} from 'react';
import './App.css';
import 'antd/dist/antd.css';
import HomeMain from "./Layout/index";
import {withRouter} from "react-router";
import LoginRouter from "./router/login/login";

class App extends React.Component {
    constructor() {
        super();
    }

    componentDidMount() {

    }

    render() {
        return (
            <div className="App">
                {
                    this.props.location.pathname === '/login' ? <LoginRouter></LoginRouter> : <HomeMain></HomeMain>
                }
            </div>
        )

    }
}


export default withRouter(App);
